package com.ktdaddy.enums;

import com.ktdaddy.exception.BaseErrorCode;

import java.io.Serializable;

/**
 * @author kdaddy@163.com
 * @date 2021/7/15 22:50
 */
public interface ErrorCode extends Serializable {
    ErrorCode SUCCESS = new BaseErrorCode(0, "OK");
    ErrorCode REQUEST_BLOCK = new BaseErrorCode(-1001, "当前访问量过大，请稍后重试!");
    ErrorCode REQUEST_PARAM_ERROR =  new BaseErrorCode(-1002, "请求参数错误");

    int getErrorCode();

    String getErrorMsg();
}
